 <%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="Sua_XoaTinTuc.aspx.cs" Inherits="Sua_XoaTinTuc" Title="Sửa xoá tin tức" ValidateRequest="false" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp; Sửa &amp; Xóa tin tức</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="width:1000px;padding:10px; text-align: center;">
    <table style="width:900px" align="center">
    <tr>
    <td>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="MaBanTin" AllowPaging="True" BackColor="#CCCCCC" 
            BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" 
            CellSpacing="2" ForeColor="Black" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
            onrowupdating="GridView1_RowUpdating" PageSize="5" 
             >
        <PagerSettings FirstPageImageUrl="~/images/sq_br_first (1).png" 
            LastPageImageUrl="~/images/sq_br_last.png" Mode="NumericFirstLast" 
            PageButtonCount="3" />
        <RowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="MaBanTin" HeaderText="MaBanTin" Visible="False" />
            <asp:BoundField DataField="TieuDe" HeaderText="Tiêu Đề" />
            <asp:BoundField  HeaderText="Nội Dung TT" DataField="NoiDungTomTat" />
            <asp:TemplateField HeaderText="Nội Dung">
                <EditItemTemplate>
                    <CKEditor:CKEditorControl ID="txtnoidung" runat="server" Height="200px" 
                        Text='<%# Bind("NoiDung") %>' TextMode="MultiLine" Width="250px"></CKEditor:CKEditorControl>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Enabled="False" 
                        Text='<%# Bind("NoiDung") %>' Width="200px"></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Hình Ảnh">
                <EditItemTemplate>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Image ID="Image1" runat="server" CssClass="hinhindex" 
                        ImageUrl='<%# "Upload\\"+Eval("HinhAnh") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowEditButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <FooterStyle  />
        <PagerStyle ForeColor="Maroon" HorizontalAlign="Center" BackColor="White" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    </td>
    </tr>
    </table>

</div>
</asp:Content>

